package com.oa.android.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.oa.android.R;
import com.oa.android.utils.Util;


/**
 *
 * 
 * @author -zouqh
 * 
 */
public class BaseActivity extends Activity implements OnClickListener {




	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		if (!Util.isNetworkAvailable(this)){
			Toast.makeText(this,"请检查网络是否连接！",Toast.LENGTH_SHORT).show();
			return;
		}

	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub

		Intent intent ;
		switch (v.getId()) {
		case R.id.close:
			finish();
			break;

		default:
			break;
		}
	}

	protected void showToast(String msg){
		Toast.makeText(this,""+msg,Toast.LENGTH_SHORT).show();
	}

}
